#include <linux/fs.h>
#include <asm/setup.h>

#include "file_opt.h"

#define CMDLINE_FILE "/proc/cmdline"
#define LINUXSEC_LINE "linuxsec=1"

static int g_linuxsec = 0;

static int get_linuxsec(void){
	int rbytes;
	char buf[COMMAND_LINE_SIZE];

	rbytes = zds_user_read(CMDLINE_FILE, buf, sizeof(buf));
	if(rbytes && strstr(buf, LINUXSEC_LINE))
		g_linuxsec = 1;

	return 0;
}

int linuxsec_is_enabled(void){
	return g_linuxsec;
}

int get_os_info(void){
	int ret;

	ret = get_linuxsec();
	if(ret)
		return ret;

	return 0;
}
